projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5529988
)
Avoid computing the same thing twice
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 31 Aug 2017 03:22:03 +0000
(23:22 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 31 Aug 2017 03:30:10 +0000
(23:30 -0400)
Trivial cleanup.
gtk/gtkrendericon.c
patch
|
blob
|
history
diff --git
a/gtk/gtkrendericon.c
b/gtk/gtkrendericon.c
index ff7eac978e4d4e630becfa3ca6875350f6d3198b..3ec7a3b5629eea829cd4ace04725c8d7d90f1b60 100644
(file)
--- a/
gtk/gtkrendericon.c
+++ b/
gtk/gtkrendericon.c
@@
-301,10
+301,7
@@
gtk_css_style_snapshot_icon_texture (GtkCssStyle *style,
if (graphene_matrix_is_identity (&transform_matrix))
{
- graphene_rect_init (&bounds,
- 0, 0,
- gsk_texture_get_width (texture) / texture_scale,
- gsk_texture_get_height (texture) / texture_scale);
+ graphene_rect_init (&bounds, 0, 0, width, height);
gtk_snapshot_append_texture (snapshot, texture, &bounds, "Icon");
}
else